package com.zhuojy.equity.mall.admin.common.entity.po;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhuojy.equity.mall.admin.common.entity.TUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 假期表
 */
@ToString
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_holiday")
public class THolidayPo implements Serializable {
    private static final long serialVersionUID = -6685981603051327927L;
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private String holidayType;

    private Integer scopeOfApplication;

    private Integer headId;

    private Integer unitDuration;

    private Integer workTime;

    private Integer isRestrictions;

    private Integer rulesId;

    private Integer settingId;

    private String state;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date createTime;

    private String createBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date updateTime;
    private String updateBy;

    @TableField(exist = false)
    private TUser tuser;
}
